package com.yyt.module_main.vm;

import android.databinding.ObservableField;
import android.databinding.ObservableInt;
import android.databinding.ObservableLong;
import android.os.Bundle;
import android.view.View;

import com.yyt.libsrc.helper.LocalHelper;
import com.yyt.libsrc.router.RouteTable;
import com.yyt.libsrc.router.RouterHelper;

import top.lixb.libcommon.binding.BindingViewModel;

public class MemberManageVM extends BindingViewModel {
    public ObservableField<String> teamIncom = new ObservableField<>();
    public ObservableInt type = new ObservableInt();
    public ObservableField<String> phoneOrName = new ObservableField<>();
    public ObservableLong startTime = new ObservableLong();
    public ObservableLong endTime = new ObservableLong(9999999999999L);

    /**
     * 查看更多成员信息
     * @param view
     */
    public void showMoreMermberList(View view) {
        Bundle bundle = new Bundle();
        bundle.putInt("role", LocalHelper.getMyRole());
        bundle.putString("sid", LocalHelper.getSid());
        bundle.putBoolean("showsublist",false);
        RouterHelper.getInstance().startAct(RouteTable.main_member_list,bundle);
    }

}

